<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>零零号商店后台管理</title>
<link rel="stylesheet" href="/static/webmaster/css/index.css">
<link rel="stylesheet" href="/static/webmaster/css/form.css">
<script type="text/javascript" src="/static/webmaster/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="/static/webmaster/js/index.js"></script>
<script type="text/javascript" src="/static/webmaster/js/util.js"></script>
<style type="text/css">
</style>
<script type="text/javascript">

</script>
</head>
<body>
    <div class="header">
        <h1>零零号商店后台管理</h1>
    </div>
    <div class="body">
        <!-- 导航栏 -->
        <div class="sidebar">
            <h3>
                <ul class="nav">
                    <li><a href="">商品管理</a></li>
                    <li><a href="">栏目管理</a></li>
                    <li><a href="">标签管理</a></li>
                </ul>
            </h3>
        </div>
        <div class="main">
            <div class="form">
                <form method="post">
                    <div class="fieldbox">
                        推广地址:
                        <input name="address" class="fieldinput" onclick="this.select()"
                            value='http://redirect.simba.taobao.com/rd?w=unionnojs&f=http%3A%2F%2Fre.taobao.com%2Feauction%3Fe%3DJxPF6UIf47XghojqVNxKsbfXOhk7kGtzHnLSp9l07xyLltG5xFicOSZqewpHPyZzEl%252BVb03J11hUQiDjp6tQAp55ZyQFEp97wR%252Fx62uEIjCB3ujUJI0OeA%253D%253D%26ptype%3D100010&k=e2e107a2b72ca1b1&c=un&b=alimm_0&p=mm_26845928_6126662_21402018'
                        >
                        <input type="button" value=" 检 测 " onclick="resolveUrl(document.forms[0].address)">
                    </div>
                </form>
                <div>
                    <fieldset>
                        <legend>商品信息预览</legend>
                        <form id="createItemForm">
                            <table class="formtable">
                                <tr>
                                    <td>商品名称</td>
                                    <td>
                                        <input type="text" name="name" class='charfield'>
                                    </td>
                                </tr>
                                <tr>
                                    <td>所属分类</td>
                                    <td>
                                        <select name="catalog" class="manytoone">
                                            {% for catalog in catalogList %}
                                                <option value='{{catalog.id}}'>{{catalog.name}}</option>
                                            {% endfor %}
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td>购买地址</td>
                                    <td>
                                        <input type="text" name="link" class='charfield'>
                                    </td>
                                </tr>
                                <tr>
                                    <td>推广地址</td>
                                    <td>
                                        <input type="text" name="extended_address" class='charfield'>
                                    </td>
                                </tr>
                                <tr>
                                    <td>商品图片</td>
                                    <td>
                                        <input type="text" name="link_img" class='charfield'>
                                    </td>
                                </tr>
                                <tr>
                                    <td>图片预览</td>
                                    <td>
                                        <img src="" alt="零零号铺" class="link_img">
                                    </td>
                                </tr>
                                <tr>
                                    <td>商品价格</td>
                                    <td><input type="text" name="price" class='floatfield'></td>
                                </tr>
                                <tr>
                                    <td>商品原价</td>
                                    <td><input type="text" name="price_old" class='floatfield'></td>
                                </tr>
                                <tr>
                                    <td>商品销量</td>
                                    <td><input type="text" name="sale_count" class="integerfield"></td>
                                </tr>
                                <tr>
                                    <td>标签</td>
                                    <td>
                                        {% for tag in tagList %}
                                            <input type="checkbox" name="tags" class="manytomany" value='{{tag.id}}'>{{tag.name}}<br>
                                        {% endfor %}
                                    </td>
                                </tr>
                                <tr>
                                    <td>喜欢数</td>
                                    <td><input type="text" name="liked" class='integerfield'></td>
                                </tr>
                                <tr>
                                    <td>点击数</td>
                                    <td><input type="text" name="clicked"  class='integerfield'></td>
                                </tr>
                                <tr>
                                    <td>商品地址</td>
                                    <td><input type="text" name="location" class='charfield'></td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td>
                                        <input type="button" value=" 提 交 " onclick="submitItem('createItemForm')">

                                        <input type="button" value="jqueryPost" id="saveItemButton">
                                    </td>
                                </tr>                            
                            </table>
                        </form>
                    </fieldset>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
